package top.zywork.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * SysConfigVO值对象类<br/>
 *
 * 创建于2019-11-06<br/>
 *
 * @author http://zywork.top 王振宇
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class SysConfigVO extends BaseVO {

    private static final long serialVersionUID = -9223372036553814923L;

    /**
	 * 配置编号
	 */
	private Long id;
	/**
	 * 配置名称
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 50, message = "必须是1-50个字符")
	private String name;
	/**
	 * 配置内容(JSON)
	 */
	@NotBlank(message = "此项是必须项")
	@Size(min = 1, max = 5000, message = "必须是1-5000个字符")
	private String value;
	/**
	 * 中文说明
	 */
	@Size(min = 0, max = 50, message = "必须小于50个字符")
	private String description;
	/**
	 * 配置注释
	 */
	@Size(min = 0, max = 5000, message = "必须小于5000个字符")
	private String comment;
	/**
	 * 允许外部访问
	 */
	private Byte outsideAccess;
	/**
	 * 版本号
	 */
	private Integer version;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 是否激活
	 */
	private Byte isActive;
	
}
